﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Common;
using Csla;
using Csla.Data;

namespace BO
{

    [Serializable()]
    public partial class Customer:BusinessBaseEx
    {
        public Customer()
        {
            this.Clear();
        }
         
        
    #region primary field
       
         private static PropertyInfo<String> OIDProperty=RegisterProperty( typeof(Customer), new PropertyInfo<String>("OID",true));
       
        
         public String OID
        { 
            get{return GetProperty(OIDProperty);}
            set{SetProperty(OIDProperty, value); }
        }
       
         private static PropertyInfo<String> NameProperty=RegisterProperty( typeof(Customer), new PropertyInfo<String>("Name",false));
       
        
         public String Name
        { 
            get{return GetProperty(NameProperty);}
            set{SetProperty(NameProperty, value); }
        }
       
         private static PropertyInfo<String> PrincipalProperty=RegisterProperty( typeof(Customer), new PropertyInfo<String>("Principal",false));
       
        
         public String Principal
        { 
            get{return GetProperty(PrincipalProperty);}
            set{SetProperty(PrincipalProperty, value); }
        }
       
         private static PropertyInfo<String> RemarkProperty=RegisterProperty( typeof(Customer), new PropertyInfo<String>("Remark",false));
       
        
         public String Remark
        { 
            get{return GetProperty(RemarkProperty);}
            set{SetProperty(RemarkProperty, value); }
        }
       
         private static PropertyInfo<String> CompanyOIDProperty=RegisterProperty( typeof(Customer), new PropertyInfo<String>("CompanyOID",false));
       
        
         public String CompanyOID
        { 
            get{return GetProperty(CompanyOIDProperty);}
            set{SetProperty(CompanyOIDProperty, value); }
        }
       
         private static PropertyInfo<String> CenterOIDProperty=RegisterProperty( typeof(Customer), new PropertyInfo<String>("CenterOID",false));
       
        
         public String CenterOID
        { 
            get{return GetProperty(CenterOIDProperty);}
            set{SetProperty(CenterOIDProperty, value); }
        }
       
         private static PropertyInfo<String> DepartmentOIDProperty=RegisterProperty( typeof(Customer), new PropertyInfo<String>("DepartmentOID",false));
       
        
         public String DepartmentOID
        { 
            get{return GetProperty(DepartmentOIDProperty);}
            set{SetProperty(DepartmentOIDProperty, value); }
        }
       
         private static PropertyInfo<String> StaffOIDProperty=RegisterProperty( typeof(Customer), new PropertyInfo<String>("StaffOID",false));
       
        
         public String StaffOID
        { 
            get{return GetProperty(StaffOIDProperty);}
            set{SetProperty(StaffOIDProperty, value); }
        }
       
         private static PropertyInfo<Boolean> IsInactiveProperty=RegisterProperty( typeof(Customer), new PropertyInfo<Boolean>("IsInactive",false));
       
        
         public Boolean IsInactive
        { 
            get{return GetProperty(IsInactiveProperty);}
            set{SetProperty(IsInactiveProperty, value); }
        }
    #endregion 
       
        public override string GetTableName()
        {
            return "Customer";
         }
        
    
    
    }
}